package com.lmax.disruptor.custom.demo;

import java.util.concurrent.atomic.AtomicInteger;

public class Trade
{
    private String id; //id
    private String name; //名称
    private double price; //金额
    private AtomicInteger count = new AtomicInteger(0);

    public String getId()
    {
        return id;
    }

    public void setId(final String id)
    {
        this.id = id;
    }

    public String getName()
    {
        return name;
    }

    public void setName(final String name)
    {
        this.name = name;
    }

    public double getPrice()
    {
        return price;
    }

    public void setPrice(final double price)
    {
        this.price = price;
    }

    public AtomicInteger getCount()
    {
        return count;
    }

    public void setCount(final AtomicInteger count)
    {
        this.count = count;
    }

    @Override
    public String toString()
    {
        return "Trade{" +
                "id='" + id + '\'' +
                ", name='" + name + '\'' +
                ", price=" + price +
                ", count=" + count +
                '}';
    }
}
